Skip to content

[action] [PR:580] Revert "ACPI: OSL: Use a threaded interrupt handler for SCI" - #56

Merged
mssonicbld merged 1 commit into
Azure:202601from
mssonicbld:cherry/msft-202601/580
Jun 24, 2026
Merged

[action] [PR:580] Revert "ACPI: OSL: Use a threaded interrupt handler for SCI"#56
mssonicbld merged 1 commit into
Azure:202601from
mssonicbld:cherry/msft-202601/580

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

This reverts commit 7a36b901a6eb0e9945341db71ed3c45c7721cfa9.

After upgrading from Debian bookworm to trixie on modular systems, the kdump kernel started hitting a soft lockup while capturing a crash dump. The issue is reproducible by triggering a panic in the production kernel with:

echo c | sudo tee /proc/sysrq-trigger

Once the kdump kernel boots, CPU0 gets stuck in the ACPI SCI handling path and the soft lockup watchdog eventually panics the kdump kernel, so no vmcore is produced.

The trace below was obtained by adding the following to the kdump command line: debug=1, loglevel=7, softlockup_all_cpu_backtrace=1 and softlockup_panic=1:

watchdog: BUG: soft lockup - CPU#0 stuck for 26s! [irq/9-acpi:39]
CPU: 0 UID: 0 PID: 39 Comm: irq/9-acpi Not tainted
  6.12.41+deb13-sonic-amd64 #1  Debian 6.12.41-1
Hardware name: Intel Camelback Mountain CRB, BIOS
  Aboot-norcal7-7.1.6-generic-22971530 06/30/2021
RIP: 0010:acpi_os_read_port+0x30/0xa0
Call Trace:
 <TASK>
 acpi_hw_gpe_read+0x61/0x80
 acpi_ev_detect_gpe+0x74/0x180
 acpi_ev_gpe_detect+0xe1/0x130
 acpi_ev_sci_xrupt_handler+0x1d/0x40
 acpi_irq+0x1c/0x40
 irq_thread_fn+0x23/0x60
 irq_thread+0x1b3/0x2f0
 kthread+0xd2/0x100
 ret_from_fork+0x34/0x50
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Kernel panic - not syncing: softlockup: hung tasks

Comparing the bookworm and trixie kernels, the SCI handler was moved from a hardirq handler to a threaded handler by the commit being reverted. Moving to a threaded IRQ regressed kdump on this hardware; reverting that commit restores the previous hardirq-based SCI handling and the kdump kernel completes the crash dump without triggering the soft lockup watchdog.

Signed-off-by: Sonic Build Admin [email protected]

This reverts commit [7a36b901a6eb0e9945341db71ed3c45c7721cfa9](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7a36b901a6eb).

After upgrading from Debian bookworm to trixie on modular systems, the kdump kernel started hitting a soft lockup while capturing a crash dump.  The issue is reproducible by triggering a panic in the production kernel with:

echo c | sudo tee /proc/sysrq-trigger

Once the kdump kernel boots, CPU0 gets stuck in the ACPI SCI handling path and the soft lockup watchdog eventually panics the kdump kernel, so no vmcore is produced.

The trace below was obtained by adding the following to the kdump command line: debug=1, loglevel=7, softlockup_all_cpu_backtrace=1 and softlockup_panic=1:

    watchdog: BUG: soft lockup - CPU#0 stuck for 26s! [irq/9-acpi:39]
    CPU: 0 UID: 0 PID: 39 Comm: irq/9-acpi Not tainted
      6.12.41+deb13-sonic-amd64 Azure#1  Debian 6.12.41-1
    Hardware name: Intel Camelback Mountain CRB, BIOS
      Aboot-norcal7-7.1.6-generic-22971530 06/30/2021
    RIP: 0010:acpi_os_read_port+0x30/0xa0
    Call Trace:
     <TASK>
     acpi_hw_gpe_read+0x61/0x80
     acpi_ev_detect_gpe+0x74/0x180
     acpi_ev_gpe_detect+0xe1/0x130
     acpi_ev_sci_xrupt_handler+0x1d/0x40
     acpi_irq+0x1c/0x40
     irq_thread_fn+0x23/0x60
     irq_thread+0x1b3/0x2f0
     kthread+0xd2/0x100
     ret_from_fork+0x34/0x50
     ret_from_fork_asm+0x1a/0x30
     </TASK>
    Kernel panic - not syncing: softlockup: hung tasks

Comparing the bookworm and trixie kernels, the SCI handler was moved from a hardirq handler to a threaded handler by the commit being reverted.  Moving to a threaded IRQ regressed kdump on this hardware; reverting that commit restores the previous hardirq-based SCI handling and the kdump kernel completes the crash dump without triggering the soft lockup watchdog.

Signed-off-by: Sonic Build Admin <[email protected]>
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: sonic-net/sonic-linux-kernel#580

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@mssonicbld
mssonicbld merged commit 30d8dc2 into Azure:202601 Jun 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant